package com;

import java.util.Date;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;



public class ceshiBean {
	
	private static Logger logger = LogManager.getLogger(ceshiBean.class.getName());
	
	@Value("${sdf}")
	private String dd;
	
	public void initM() {
		logger.info("调用info");
		logger.error("调用error");
		System.out.println(new Date()+"  "+dd+"调用bean");
	}
	
}
